package com.zxc.oauth.model

enum class OrganizationType(private val value: String, private val remark: String){

    SYSTEM("system", "系统管理"),

    COLLEGE("college", "学院");

    fun getValue(): String = value

    companion object{
        fun getInstance(value: String): OrganizationType {
            return OrganizationType.values().find { it.value == value }
                ?: throw EnumConstantNotPresentException(OrganizationType::class.java, value)
        }
    }
}